Skip to content

feat: add deployer host installer (#22) - #69

Merged
Nickfost merged 57 commits into
mainfrom
feat/issue-22-deployer-host-installer
Oct 14, 2026
Merged

Nickfost merged 57 commits into
mainfrom
feat/issue-22-deployer-host-installer

Conversation

@Nickfost

@Nickfost Nickfost commented Aug 8, 2026 •

Copy link
Copy Markdown
Member

Adds the separate deployer-host installer for issue #22 with explicit check, install, upgrade, repair, rollback, drain, resume and uninstall commands. Core, adapter, application source and artifact are pinned to immutable revisions/digests. Protected approval, target, credential and checkpoint evidence are validated before application operations.

Application adapters run in bounded DynamicUser services with a read-only filesystem, no capabilities, private devices/network and no direct Docker or systemd access. A constrained broker permits only the reviewed artifact and resources scoped to the deployer identity, environment and target. Its backend is a dedicated rootless daemon with private socket/group/ACL boundaries. Registry auth headers are rejected; private artifacts require separately authorized provisioning.

Protected durable journals, pending approval consumption and outstanding-operation guards preserve replay protection, audits, requests, incumbent deployment and rollback state across interruption. Rollback recovery requires a completed, non-uncertain broker journal even after reboot loses the volatile guard. Installer transaction recovery reads that evidence before standalone volatile-guard retirement; verified dispatch guards and the adapter journal retire before transaction cleanup removes the commit marker. Failed durable commit-marker publication records uncertainty before any automatic restoration. The broker authenticates outcome publication against the transient unit main executor PID, and the executor disables process dumping before launching the adapter. Only a zero adapter exit with its runtime marker can confirm commitment. The contained executor confirms committed rollback or normal application failure through the broker; missing confirmation, signal termination before commitment and success without a marker retain in-flight recovery. Completed rollback journals bind the confirmed outcome to the protected marker; legacy records without confirmation require operator reconciliation. All installer modes, including check, require root. Reciprocal systemd role admission runs before recovery or adoption, including controller capacity and bootstrap restoration. Production deployment, cleanup and rollback remain separately gated.

Owner decision on 2026-10-13 replaces prepared-host end-to-end testing as a merge gate with local deployer lifecycle/replay, adversarial adapter and unit verification, required CI on the exact head, and current-head review. Runtime containment, credential, approval, checkpoint and production restrictions are preserved. Local verification does not claim real-host authority, application compatibility or deployed health. No live-host or credential activity is authorized or performed by this PR.

Application adoption and operational rollout are tracked in:

Refs #22. Keep issue #22 open. After repository verification, the original containment code threads can resolve with operational uncertainty explicitly transferred to the adoption issues. Existing project deployment paths stay available until separately authorized cutover/rollback decisions.

Validation includes local alternate-root lifecycle/recovery and replay regressions, 42 adversarial adapter tests, systemd unit verification including volatile-lock boot preparation, shell syntax/ShellCheck, documentation links, immutable-commit secret scanning and required hosted repository/container checks. Merge requires those checks and review on the final head; no existing required check is removed.

Documentation impact: docs/DEPLOYER-HOST.md documents local verification, root-required checks, durable rollback recovery and project migration. docs/DESIGN-DECISIONS.md records the owner-authorized gate change, residual host risks and follow-ups. docs/OPERATOR-WORKFLOWS.md makes core availability distinct from separately authorized host activation. Prior host, secrets and role-admission documentation remains included. Regression tests reproduce and fix lost volatile guards, missing/inflight/uncertain durable journals, failed commit-marker publication before and after durable replacement, missing rollback outcome confirmation, forged publication by adapter subprocesses, unavailable/mismatched main-PID identity, precommit termination, commit-marker/outcome mismatches and the unprivileged-check error. Final local lifecycle, required CI and review must pass on the published head before merge.

@Nickfost

Nickfost commented Aug 8, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 73f45a1a10

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ed8c5e6351

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 777f8c534c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 19a0c4e200

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 37d29628fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 773c3ae74c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61b3d0eace

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ddea4d953

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: deb781caef

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 817c0bff69

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9d78330ec1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: efa522473c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e52f59d3d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0242374e66

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
@Nickfost

Nickfost commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c6cffb3d33

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe3177c382

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/deployer_adapter.py Resolved
Comment thread scripts/deployer_adapter.py Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-worker-controller.sh Resolved
Comment thread scripts/deployer-runtime.sh Resolved
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

Please review current head a7c2561. All five new useful findings are implemented and rated useful: terminated rollback journals without Docker uncertainty can retire for protected-marker handling; backend sockets enforce mode, GID/private membership, ACL and ancestry checks; fresh snapshot recovery names publish durably before allocation; controller admission runs before adoption/configuration preparation; and approval consumption now has a durable protected pending record that reconciles missing markers, partial audit writes and interrupted retirement. Credential stores and bind sources also reject inherited ACLs.

All 34 adversarial adapter tests passed, including missing-marker/partial-audit/post-audit crash recovery, idempotent audit repair, socket access cases and credential ACL rejection. Shell syntax, ShellCheck, documentation links, whitespace and immutable-commit secret scanning passed. Full frozen deployer lifecycle and focused controller admission checks run on this head, with required hosted CI. Documentation updates the deployer/host runbooks. #69 remains draft and #22 remains open. Original containment host-proof threads remain unresolved. No live host, deployment credential or infrastructure activity occurred.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: a7c256183c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

Please review final published head 9565cbd. It normally merges reviewed main through #128, merged as 70c5aff. The deployer/runtime/adapter and role-admission code is unchanged from a7c2561, which passed full required CI 38385175633, frozen full deployer lifecycle and current-head Codex review without major issues. Its ten verified code threads are resolved; both original containment host-proof threads remain open.

Frozen final-head verification passed 85 snapshot/source/store tests, 34 adversarial adapter tests and replay-ledger regressions. README and validate.sh preserve both implementations. Final static checks and required hosted CI run on this exact commit. #128 passed exact-head CI 38398470466 and Codex review; all 27 useful findings were verified, rated useful and resolved before merge. Documentation impact covers the existing deployer/host/secrets runbooks and the merged snapshot/design/index links. Keep #69 draft and #22 open. No live host, deployment credential or infrastructure activity occurred; prepared-host acceptance remains outstanding.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 9565cbd0ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Nickfost

Copy link
Copy Markdown
Member Author

Verified final head 9565cbd. Required CI https://github.com/RandomDevelopment/ci-fleet/actions/runs/38402684134 passed on this exact commit, including full repository/container, deployer/controller lifecycle and recovery, static, secret and documentation validation. Current-head Codex review reported no major issues at #69 (comment).

Frozen local verification passed all 85 snapshot/source/store tests, 34 adversarial adapter tests, replay-ledger regressions, ShellCheck, shell syntax, documentation links, whitespace and final-commit secret scanning. Main reconciliation preserves both implementations in README and validate.sh; deployer/runtime/adapter and role-admission bytes remain unchanged from the independently verified a7c2561. Documentation impact is complete in the deployer/host/secrets runbooks and merged snapshot/design/index documentation.

The paginated final audit covered 359 threads. Every code finding is verified and resolved; the two original containment host-proof threads remain open. All Codex findings across the in-scope PRs have usefulness ratings, including thumbs-down reactions on rejected findings. #73, #74, #116, #126 and #128 are merged. #36, #50 and #118 remain open for remaining coverage and operational acceptance.

Keep #69 draft and unmerged and #22 open. Missing acceptance includes real-host daemon/adapter containment and privilege/group proof; target-scoped credential and artifact provisioning; credential reboot/rotation and persistent binds; recoverable checkpoint creation/restoration; real install/rerun/check and systemd lifecycle; missing/mismatched/replayed approval rejection; interruption, rollback and recovery; scoped cleanup after success/failure/cancellation/timeout; and repeated uninstall with required retention. Repository CI does not establish these host properties.

The concrete next step is separate operator authorization of an isolated staging host and target, the reviewed application adapter/digest, scoped credential/artifact provisioning, checkpoint restoration and permitted containment/failure exercises. Then follow the prepared-host acceptance runbook on the exact reviewed core/adapter revisions and retain detailed evidence privately. No live host, deployment credential or infrastructure activity occurred in this work.

@Nickfost
Nickfost marked this pull request as ready for review October 13, 2026 23:39
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

Please review final head 8cff6b0. The owner explicitly replaced the prepared-host end-to-end merge gate with local verification, required current-head CI and review. The change updates the deployer runbook and design decision, retaining all runtime containment, identity, credential, approval, checkpoint and production restrictions. Application and template adoption are tracked in mmrss#126, TF2-Recommendation-Engine#373 and ci-fleet-config-template#26. Host activity is not authorized and no real-host proof is claimed. Please identify actionable code or documentation problems on this head.

@Nickfost Nickfost left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manual review of final head 8cff6b0 passed. The diff changes only docs/DEPLOYER-HOST.md and docs/DESIGN-DECISIONS.md. It implements the owner's explicit decision to remove prepared-host end-to-end testing as a merge gate and links the three requested adoption issues. Required CI/review and runtime containment, credential, approval, checkpoint and production boundaries remain. Ordinary-CI migration gates are unchanged.

Local verification passed the full alternate-root lifecycle suite with DEPLOYER_INSTALL_TESTS_OK, replay regressions with DEPLOYER_REPLAY_LEDGER_TESTS_OK, all 34 adversarial broker/adapter tests, real systemd definition and volatile-lock preparation checks with DEPLOYER_UNIT_TESTS_OK, ShellCheck, Bash syntax, 40 Markdown local-link checks, whitespace and immutable final-commit secret scanning. The lifecycle suite ran against frozen 9565cbd; all scripts, deploy definitions, workflows and engine capabilities are byte-identical on final head 8cff6b0. The new commit's docs and secret checks were verified locally.

Both original containment code findings are addressed by the constrained rootless broker, inaccessible backend/admin sockets, DynamicUser read-only adapter sandbox and protected durable recovery store. Focused tests reject host journal binds, volume-driver options, host escapes, rootful peers, unsafe socket/group/ACL authority and direct writable sandbox roots; forced dispatch/consumption failures retain or repair protected records. Actual host grants, app networking/state/data compatibility, credential provisioning and operational proof remain unclaimed and are tracked in mmrss#126, TF2-Recommendation-Engine#373 and ci-fleet-config-template#26. Owner-authorized local merge acceptance does not authorize host activation.

No new actionable finding was found in the documentation diff or the two containment fixes. Required CI run 38485618285 passed on this exact head. The requested final-head Codex review is still running; merge waits for its result. The owner-approved repository verification permits resolution of the two verified containment code threads without claiming host proof. Issue #22 remains open.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8cff6b08ee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/install-deployer.sh Resolved
Comment thread scripts/deployer_adapter.py Resolved
Comment thread docs/DEPLOYER-HOST.md Resolved
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

Please review final head 9d7f502. All four findings from 8cff6b0 were useful and rated thumbs-up. Fixes require root for check, verify completed/non-uncertain durable rollback journals before restoration or finalization even after volatile-guard loss, flag commit-marker publication as a mutation before writing, and align OPERATOR-WORKFLOWS with the owner-authorized local merge gate.

Three focused regressions reproduced the code failures on the prior head, then all 37 adapter tests passed after the fixes. They cover absent/inflight/uncertain journals with both present and absent commit markers, safely completed nonzero rollback recovery, and publication I/O failures before and after durable replacement. Full local lifecycle and required CI are rerunning on this head. DEPLOYER-HOST documents root/check and rollback recovery; the explicit owner decision removing prepared-host E2E as a core merge gate remains. Host activation/credentials and production remain separately authorized. Issues mmrss#126, TF2-Recommendation-Engine#373 and ci-fleet-config-template#26 track adoption. Issue #22 stays open.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9d7f5022fb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

Please review final head 97a6d71. The five valid findings on 8cff6b0/9d7f502 are rated useful and fixed. Rollback recovery now validates completed durable outcome evidence before retiring guards/journals and before core restoration/finalization, preserving both same-boot and reboot recovery. The broker confirms committed rollback or normal application failure; lost confirmation, pre-commit signal termination, missing markers and legacy unconfirmed records remain in flight or blocked. Outcome/marker binding also rejects contradictory or unsafe commit evidence.

All 39 focused adapter tests passed, with the acquired-lock recovery fixture covering both volatile-guard presence and absence plus missing/inflight/uncertain/legacy/confirmed journals. Root-required check and operator-workflow docs are aligned. A full local lifecycle suite is rerunning on this exact head, as is required CI. The owner-authorized replacement of prepared-host E2E as a core merge gate remains recorded; host activation/credentials and production remain separately gated. Adoption issues mmrss#126, TF2-Recommendation-Engine#373 and ci-fleet-config-template#26 remain open. Issue #22 stays open.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 97a6d71cbc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/deployer_adapter.py Resolved
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

Please review final head fe08b82. All six useful findings from 8cff/9d7/97a are rated thumbs-up and fixed. Outcome publication now requires the Unix socket peer PID to match the trusted transient unit's current MainPID. The executor disables process dumping before launching the adapter so same-UID children cannot borrow its private descriptors/memory; only a zero adapter exit plus the runtime marker may publish commitment. Nonzero/signalled exits with a marker remain ambiguous and retain recovery state.

All 42 focused tests passed, including a separate adapter process denied forged publication, legitimate executor outcome delivery, MainPID query mismatch/unavailability/timeout, and actual dumpability protection in an isolated child. The complete local alternate-root lifecycle/replay suite passed at 97a; installer/runtime/Bash fixture and unit definitions are byte-identical on this head. Current Python changes are covered by the 42 tests. Final required hosted CI reruns the full repository/container/lifecycle suite on this exact head. Unit/static/docs/immutable-commit secret checks passed.

Transaction recovery precedes standalone volatile-guard retirement; completed outcome/marker evidence is verified before guard/journal retirement and core restoration/finalization. Missing/inflight/uncertain/legacy unconfirmed records stay blocked. The owner's local merge gate decision remains; no live host, credentials or infrastructure activation are authorized or claimed. Adoption issues mmrss#126, TF2-Recommendation-Engine#373 and config-template#26 remain open; issue #22 stays open.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: fe08b82738

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Nickfost Nickfost left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified final head fe08b82. Required CI https://github.com/RandomDevelopment/ci-fleet/actions/runs/38497680256 passed on this exact commit. Codex final-head review reported no major issues at #69 (comment). All 42 focused tests, unit/static/doc/secret checks passed; the complete local lifecycle/replay suite passed at 97a with byte-identical installer/runtime/Bash fixtures/unit definitions. Final hosted CI reran the full suite on fe08b82.

Manual final-head review passed. The six new useful findings and related rollback transport ambiguity are addressed and regression-tested. All core runtime containment, credential, approval, checkpoint and production restrictions remain. The prepared-host end-to-end merge gate was removed only by the explicit owner decision, reflected in DEPLOYER-HOST, DESIGN-DECISIONS and OPERATOR-WORKFLOWS. Issue #22 remains open; adoption issues mmrss#126, TF2-Recommendation-Engine#373 and config-template#26 remain open. No live host or credential activity occurred. Merge the verified core before the independent controller Go update #129, which will then be reconciled and checked against the resulting main.

@Nickfost

Copy link
Copy Markdown
Member Author

Verified final head fe08b82. Required CI https://github.com/RandomDevelopment/ci-fleet/actions/runs/38497680256 passed on this exact commit. Codex final-head review reported no major issues at #69 (comment). All 42 focused tests, unit/static/doc/secret checks passed; the complete local lifecycle/replay suite passed at 97a with byte-identical installer/runtime/Bash fixtures/unit definitions. Final hosted CI reran the full suite on fe08b82.

Manual final-head review passed. The six new useful findings and related rollback transport ambiguity are addressed and regression-tested. All core runtime containment, credential, approval, checkpoint and production restrictions remain. The prepared-host end-to-end merge gate was removed only by the explicit owner decision, reflected in DEPLOYER-HOST, DESIGN-DECISIONS and OPERATOR-WORKFLOWS. Issue #22 remains open; adoption issues mmrss#126, TF2-Recommendation-Engine#373 and config-template#26 remain open. No live host or credential activity occurred. Merge the verified core before the independent controller Go update #129, which will then be reconciled and checked against the resulting main.

@Nickfost
Nickfost merged commit c67d18d into main Oct 14, 2026
2 checks passed
@Nickfost
Nickfost deleted the feat/issue-22-deployer-host-installer branch October 14, 2026 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant